package com.longxiao.para;

import com.longxiao.validator.anno.ValiCnMobile;
import com.longxiao.validator.anno.ValiNotBlank;
import com.longxiao.validator.anno.ValiNumber;
import com.longxiao.vo.RegisterVo;

/**
 * Created by yusong on 2017/6/2.
 * 新增用戶參數
 */
public class AddUserParam extends RegisterVo {
    //用户类型 用户类型（1：学生，2：老师）
    @ValiNumber(ref = {1, 2}, err = "请输入正确的用户类型")
    private Integer userType;
    //密码
    @ValiNotBlank(err = "请输入密码")
    private String password;
    //手机号
    @ValiCnMobile(err = "请输入正确的手机号码")
    private String mobile;

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
